body {
  padding: 0;
  margin: 0;
}

// ::-webkit-scrollbar {

//   width: 5px;

//   height: 5px;

//   background-color: #F5F5F5;

// }

// ::-webkit-scrollbar-thumb {

//   border-radius: 10px;

//   -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);

//   background-color: #bdbdbd;

// }

// ::-webkit-scrollbar-thumb:hover {

//   border-radius: 5px;

//   -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);

//   background: rgba(0, 0, 0, 0.2);

// }


.header {
  height: 40px;
  width: 100%;
  background-color: #dddddd;
}

.main {
  position: relative;
  width: 100%;
  height: calc(100vh - 50px);
  overflow: hidden;

  .aside {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: calc(100vh - 50px);

  }

  .screen-viewer {
    // width: 100%;
    height: calc(100vh - 50px);
    width: calc(100vw - 170px);
    margin-left: 150px;
  }

  .inspector {
    position: absolute;
    right: -220px;
    top: 0;
    width: 200px;
    height: calc(100vh - 70px);
    background-color: rgba(200, 200, 200, 0.9);
    transition: all 0.2s ease;
    padding: 10px;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 14px;

    .form_body {
      max-height: calc(100vh - 170px);
      overflow-y: auto;
      overflow-x: hidden;
      padding-right: 2px;
    }


    .tabs {
      .tabs__header {
        background-color: #333;
        // border: 1px solid #333;

        padding: 10px;
        cursor: pointer;
        border-radius: 4px 4px 0 0;

        .tabs__item {
          color: #fff;
          height: auto;
        }

        .tabs__active-bar {
          display: none;
        }

        &:after {
          display: none;

        }
      }

      .tabs__content {
        .tabpanel {
          height: 100px;
          overflow: auto;
          word-break: break-all;
          padding: 10px;
        }
      }
    }


    .props {
      .title {
        background-color: #333;
        border: 1px solid #333;
        color: #fff;
        padding: 10px;
        cursor: pointer;
        border-radius: 4px 4px 0 0;
      }

      .content {
        word-break: break-all;
        border: 1px solid #333;
        font-size: 10px;
        padding: 4px;
        height: 100px;
        overflow: auto;

        &.hide {
          display: none;
        }

      }

    }
  }
}





#app {
  form {
    .form-item {
      display: flex;
      border: 1px solid #ccc;
      // padding: 4px 0;
      align-items: center;

      &-label {
        padding: 0 4px;
        width: 100px;
        line-height: 40px;
        height: 40px;
        overflow: hidden;
        min-width: 100px;
      }

      &-input,
      &-number,
      &-select {
        -webkit-appearance: none;
        background-color: #fff;
        background-image: none;
        border-radius: 4px;
        border: 1px solid #dcdfe6;
        box-sizing: border-box;
        color: #606266;
        display: inline-block;
        font-size: inherit;
        height: 40px;
        line-height: 40px;
        outline: none;
        padding: 0 15px;
        transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
        width: 100%;

        &:focus {
          outline: none;
          border-color: #409eff;
        }

        &:disabled {
          border: none;
          color: #fff;
          background-color: #333;
        }
      }

      &-number {
        // width: 100px;
        padding-right: 0;
      }

    }

    .select-dropdown {
      position: absolute;
      z-index: 1001;
      border: 1px solid #e4e7ed;
      border-radius: 4px;
      background-color: #fff;
      box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
      box-sizing: border-box;
      margin: 5px 0;
    }

    // .form-btn {
    //   min-width: 50px;
    //   border: 1px solid #ccc;
    //   margin-right: 10px;
    //   cursor: pointer;
    //   height: 30px;


    // }
  }



  table {
    border-right: 1px solid #ccc;
    border-top: 1px solid #ccc;

    td,
    th {
      border-left: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
      height: 30px;
      line-height: 30px;
      padding: 0 4px;

      &.center {
        text-align: center;
      }

      .edit,
      .del {
        cursor: pointer;
        color: blue;

        &:hover {
          color: #ccc;
        }
      }
    }

    th {
      background-color: #dedede;
    }
  }



  .checkbox {
    color: #606266;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    user-select: none;
    margin-right: 30px;

    .checkbox__input {
      white-space: nowrap;
      cursor: pointer;
      outline: none;
      display: inline-block;
      line-height: 1;
      position: relative;
      vertical-align: middle;

      &.is-checked {
        .checkbox__inner {
          background-color: #409eff;
          border-color: #409eff;

          &::after {
            transform: rotate(45deg) scaleY(1);
          }
        }
      }


      .checkbox__inner {
        display: inline-block;
        position: relative;
        border: 1px solid #dcdfe6;
        border-radius: 2px;
        box-sizing: border-box;
        width: 14px;
        height: 14px;
        background-color: #fff;
        z-index: 1;
        transition: border-color .25s cubic-bezier(.71, -.46, .29, 1.46), background-color .25s cubic-bezier(.71, -.46, .29, 1.46);

        &::after {
          box-sizing: content-box;
          content: "";
          border: 1px solid #fff;
          border-left: 0;
          border-top: 0;
          height: 7px;
          left: 4px;
          position: absolute;
          top: 1px;
          transform: rotate(45deg) scaleY(0);
          width: 3px;
          transition: transform .15s ease-in .05s;
          transform-origin: center;
        }

      }

      input {
        opacity: 0;
        outline: none;
        position: absolute;
        margin: 0;
        width: 0;
        height: 0;
        z-index: -1;
        display: none;
      }

    }


  }

  div,
  input {
    &.red {
      color: red
    }

    &.blue {
      color: blue
    }

    &.green {
      color: green
    }

    &.yellow {
      color: yellow
    }
  }

  button,
  .form-btn {

    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    transition: .1s;
    font-weight: 500;
    user-select: none;
    // -moz-user-select: none;
    // -webkit-user-select: none;
    // -ms-user-select: none;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 4px;

    &.success {
      color: #fff;
      background-color: #409eff;
      border-color: #409eff;
      // background-color: greenyellow;

      &:hover {
        background-color: #7db7f1;
      }
    }


    &:hover {
      background-color: #dedede;
    }

    &.red {
      color: white;
      background-color: red;
    }

    &.blue {
      color: white;
      background-color: blue;
    }

    &.red {
      color: white;
      background-color: red;
    }

    &.green {
      color: white;
      background-color: green;
    }

    &.yellow {
      color: black;
      background-color: yellow;
    }

    &+button {
      margin-left: 10px;
    }


  }

  // button+button{
  //   margin-left: 10px;
  // }

  .container {
    display: flex;

    #main {
      flex: 1
    }
  }



  .menu {
    &>ul {
      display: flex;
      list-style: none;
      font-size: 14px;
      margin: 0;
      padding: 0;

      &>li {
        margin-right: 10px;
        cursor: pointer;
        position: relative;
        height: 40px;
        line-height: 40px;
        // background-color: #303133;
        min-width: 60px;
        padding: 0 10px;

        &:hover {
          color: red;

          &>ul {
            display: block;
            display: flex;
          }
        }

        &>ul {
          display: none;
          position: absolute;
          left: 0;
          top: 40px;
          list-style: none;
          border: 1px solid #ebeef5;

          box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
          background: rgb(255 255 255 / 90%);
          padding: 0;
          min-width: 100px;


          flex-wrap: wrap;
          width: 360px;

          &>li {
            color: #333;
            padding: 0 10px;
            width: 100px;

            &:hover {
              color: #333;
              background-color: #ccc;
            }
          }

        }
      }
    }

  }


  .fallmenu,
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    ul,
    li {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 160px;
      margin-right: 100px;

      .next,
      .prev,
      .stop {
        cursor: pointer;
        user-select: none;

        &:hover {
          color: red;
        }
      }
    }

    &>ul {
      display: flex;
      list-style: none;
      font-size: 14px;
      margin: 0;
      padding: 0;

      &>li {
        margin-right: 10px;
        cursor: pointer;
        position: relative;
        height: 40px;
        line-height: 40px;
        // background-color: #303133;
        min-width: 60px;
        padding: 0 10px;

        &:hover {
          color: red;

          &>ul {
            // display: block;
            display: flex;
          }
        }

        &>ul {
          display: none;
          // display: flex;
          position: absolute;
          left: 0;
          top: 40px;
          list-style: none;
          border: 1px solid #ebeef5;

          box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
          background: rgb(255 255 255 / 90%);
          padding: 0;
          min-width: 100px;


          flex-wrap: wrap;
          width: 720px;

          &>li {
            color: #333;

            width: 100px;

            &>div {
              padding: 0 10px;
              font-weight: bold;
            }

            &:hover {
              // color: #333;
              background-color: #dfdfdf;
            }


            &>ul {
              &>li {
                padding: 0 10px;

                &:hover {
                  color: #dfdfdf;
                  background-color: #333;
                }

              }
            }
          }

        }
      }
    }

  }

  .aside {
    width: 150px;
    height: calc(100vh - 60px);
    overflow: auto;

    .navtree {
      &.hide {
        display: none;
      }

      ul,
      li {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      &>ul {
        &>li {

          min-width: 100px;

          &:hover {
            background-color: #dfdfdf;
            cursor: pointer;
          }

          &>div {
            padding: 10px 10px;
            background-color: #dfdfdf;
            cursor: default;
          }

          // &>div + ul {
          //   font-weight: bolder;
          // }

          &>ul {
            padding: 0px;
            background-color: #fff;


            &>li {
              &>div {
                padding: 10px 10px;

                // min-width: 100px;
                &:hover {
                  background-color: #dfdfdf;
                  cursor: pointer;
                }

                &.active {
                  background-color: #dfdfdf;
                  color: red;
                }
              }

            }
          }
        }
      }




    }

  }





  .panel {
    height: calc(100vh - 40px);

    &.hide {
      display: none;
    }
  }




}


div.popover {
  position: absolute;
  width: 200px;
  height: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #ccc;

  background: #fff;
  min-width: 150px;
  border-radius: 4px;
  border: 1px solid #ebeef5;
  padding: 12px;
  z-index: 2000;
  color: #606266;
  line-height: 1.4;
  text-align: justify;
  font-size: 14px;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  word-break: break-all;

  .popover__title {
    padding: 0 10px;
    color: #303133;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 12px;
  }

  .popover__content {
    padding: 0 10px;
  }

  .popover__arrow {
    top: -6px;
    left: 50%;
    margin-right: 3px;
    border-top-width: 0;
    border-bottom-color: #ebeef5;
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;

    &::after {
      top: 1px;
      margin-left: -6px;
      border-top-width: 0;
      border-bottom-color: #fff;
      content: " ";
      border-width: 6px;
    }
  }
}

.tabs {
  .tabs__header {
    display: flex;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 2px;
      background-color: #e4e7ed;
      z-index: 1;
    }

    .tabs__active-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 2px;
      background-color: #409eff;
      z-index: 2;
      transition: transform .3s cubic-bezier(.645, .045, .355, 1);
      list-style: none;
      // width: 56px; 
      // transform: translateX(96px);
    }

    .tabs__item {
      margin-right: 10px;
      cursor: pointer;
      color: blue;
      height: 30px;
      min-width: 50px;
      user-select: none;


      &:hover {
        color: #ccc;
      }

    }

  }

  .tabs__content {
    .tabpanel {
      display: none;
      height: calc(100vh - 40px);

      &.active {
        display: block;
      }
    }
  }
}